package cn.ang.app.mapper;

import cn.ang.app.pojo.DataDictionary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DataDictionaryMapper {

    Integer APP_STATUS= 1;

    Integer APP_FLATFORM= 2;

    int deleteByPrimaryKey(Long id);

    int insert(DataDictionary record);

    int insertSelective(DataDictionary record);

    DataDictionary selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(DataDictionary record);

    int updateByPrimaryKey(DataDictionary record);

    /**
     * 查询app状态 和 平台信息
     * @param state 1 app   2 平台
     * @param flag true 更具app已有信息查询  否则直接查询
     * @return
     */
    List<DataDictionary> selectDataDictionary(@Param("state") Integer state,@Param("flag") boolean flag);
}